from django.conf.urls.defaults import *
from merchant.apps.categories.models import *

hierarchy_dict = {
	'queryset': Hierarchy.objects.all()
}

urlpatterns = patterns('',
	url(r'^$', 'django.views.generic.list_detail.object_list', hierarchy_dict, name='merchant_categories_list'),
	url(r'^(?P<slug>[\w-]+)/$', 'django.views.generic.list_detail.object_detail', hierarchy_dict, name='merchant_categories_hierarchy'),
	url(r'^(?P<slug>[\w-]+)/(?P<category_slug>[\w\-\/]+)/$', 'merchant.apps.categories.views.category_detail', name='merchant_categories_category'),
)
